#include "HistoryUI.h"

HistoryUI::HistoryUI(QWidget *parent)
         :QDialog(parent){
    setWindowTitle(tr("History"));
    setFixedHeight(500);
    historyMsg = new QListWidget;
    BtnClose = new QPushButton(tr("close"));

    mainLayout = new QGridLayout(this);
    mainLayout->addWidget(historyMsg);
    mainLayout->addWidget(BtnClose);

    connect(BtnClose,SIGNAL(clicked(bool)),this,SLOT(close()));
}

HistoryUI::~HistoryUI(){
}

void HistoryUI::updateHistoryUI(QString str){
    historyMsg->addItem(str);
}

